#ifndef FILEINFO_H_
#define FILEINFO_H_

#include <string.h>
#include <sstream>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>

using namespace std;

class DirectoryEntry {

private:
	char fileName[12];
	int iNodeNum;

	char* padInodenum(string inodeNum);
	void intToByte (int val, char* pBytes, int start);


public:
	DirectoryEntry(int inode, const char* newFileName);
	virtual ~DirectoryEntry();
	char *getFileName();
	int getINodeNum();
	void parseIntoCharArr(char* buf);
};

#endif /* FILEINFO_H_ */
